﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="ms-design-extensionType" content="Search" />
    <title>Search Contract</title>

    <!-- WinJS references -->
    <link href="//Microsoft.WinJS.1.0/css/ui-dark.css" rel="stylesheet" />
    <script src="//Microsoft.WinJS.1.0/js/base.js"></script>
    <script src="//Microsoft.WinJS.1.0/js/ui.js"></script>

    <link href="/css/default.css" rel="stylesheet" />
    <link href="/pages/searchresults/searchresults.css" rel="stylesheet" />
    <script src="/js/data.js"></script>
</head>
<body>
    <div id="sound-tile-template" data-win-control="WinJS.Binding.Template">
        <div data-win-bind="innerText: keyBind"></div>
        <div data-win-bind="innerText: soundName"></div>
        <div data-win-bind="innerText: soundType"></div>
    </div>

    <!-- The content that will be loaded and displayed. -->
    <div class="searchresults fragment">
        <header aria-label="Header content" role="banner">
            <button class="win-backbutton" aria-label="Back" disabled type="button"></button>
            <div class="titlearea">
                <h1 class="pagetitle win-type-ellipsis">Search Results for: <span data-win-bind="innerText: searchQuery.queryText"></span></h1>
                <h2 class="pagesubtitle win-type-ellipsis"></h2>
            </div>
        </header>
        <section aria-label="Main content" role="main">
            <div class="resultslist win-selectionstylefilled" data-win-control="WinJS.UI.ListView" data-win-options="{
                itemDataSource: ViewModels.searchSoundTiles.dataSource,
                itemTemplate: select('#sound-tile-template'),
                oniteminvoked: HomeCodeBehind.playSound,
                onselectionchanged: HomeCodeBehind.addTilesSwipeEvent,
                selectionMode: WinJS.UI.SelectionMode.single,
                swipeBehavior: WinJS.UI.SwipeBehavior.select
            }">
            </div>

            <div id="appBar" data-win-control="WinJS.UI.AppBar" data-win-options="{disabled: true}">
                <button data-win-control="WinJS.UI.AppBarCommand" data-win-options="{id:'cmdAdd',label:'Add from File',icon:'add',section:'selection',tooltip:'Add song/sound'}"></button>
                <button data-win-control="WinJS.UI.AppBarCommand" data-win-options="{id:'cmdMic',label:'Microphone',icon:'microphone',section:'selection',tooltip:'Record from microphone'}"></button>
            </div>
        </section>
    </div>
</body>
</html>
